//
//  MPMoviePlayerView2.h
//  kankanVideo
//
//  Created by wangbo on 7/9/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

@protocol MPMoviePlayerView2Delegate <NSObject>

@required
-(void)playover;
@end

#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>

@interface MPMoviePlayerView2 : UIViewController{
    //sdk3.2以后
    MPMoviePlayerViewController *_moviePlayViewController;
    //sdk3.2以前
    MPMoviePlayerController *_moviePlayerController;
}


@property(nonatomic,assign) id<MPMoviePlayerView2Delegate>deleagate;
@property (nonatomic,retain) MPMoviePlayerViewController *_moviePlayViewController;
@property (nonatomic,retain) MPMoviePlayerController *_moviePlayerController;

-(MPMoviePlayerViewController*)getPlayer;
+(MPMoviePlayerView2*)shareInstance;
//远程视频事件
- (void) playURLVideo:(NSString *)_url;
//本地视频事件
- (void) playFileVideo;
-(void) initAndPlay:(NSString *)videoURL;

@end
